<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<ul class="set_item" ng-include="'html/component/left_nav.html'" ng-controller="CunhuoNavCtrl">
</ul>
<div class="set_box">
  <h1 class="set_title"><!--盘点单详情-->{{language.TIPS_INVENTORY_CHECK_ORDER_DEAIL}}<span class="title_btn_group"> 
  <a class="title_btn" href="javascript:void(0);" ng-click="come_back();"><!--关闭-->{{language.ACT_CLOSE}}</a>
  <a class="title_btn" href="javascript:void(0);" ng-show="view_more" ng-click="show_details();"><!--详情-->{{language.TIPS_INVENTORY_DETAIL}}</a></span></h1>
  <div class="set_cont detail_page" ng-swipe-right="come_back();">
    <form class="detail_form">
      <p class="title"> <!--盘点-->{{language.TIPS_INVENTORY_CHECK}}：{{pandian_list_detail.record.record_code}} </p>
      <table class="detail_table">
        <tr>
          <td class="name"><!--日期-->{{language.TIPS_INVENTORY_DATE}}：</td>
          <td class="val">{{pandian_list_detail.record.record_time}}</td>
          <td class="name"><!--店铺-->{{language.TIPS_INVENTORY_SHOP}}：</td>
          <td class="val">{{pandian_list_detail.record.shop_name}}</td>
        </tr>
        <tr>
          <td class="name"><!--关联单号-->{{language.TIPS_INVENTORY_ASSOCIATE_NUMBER}}：</td>
          <td class="val">{{pandian_list_detail.record.relation_code}}</td>
          <td class="name"><!--数量-->{{language.TIPS_INVENTORY_NUM}}：</td>
          <td class="val">{{pandian_list_detail.record.num}}</td>
        </tr>
        <tr>
          <td class="name"><!--总价-->{{language.TIPS_INVENTORY_TOTAL_PRICE}}：</td>
          <td class="val">{{pandian_list_detail.record.money|number:2}}</td>
          <td class="name"><!--备注-->{{language.TIPS_INVENTORY_REMARK}}：</td>
          <td class="val">{{pandian_list_detail.record.remark}}</td>
        </tr>
        <tr>
          <td class="name"><!--更新时间-->{{language.TIPS_INVENTORY_UPDATE_TIME}}：</td>
          <td class="val">{{pandian_list_detail.record.lastchanged}}</td>
          <td class="name" ng-show ="!is_lqx"><!--品牌-->{{language.TIPS_SET_BRAND}}：</td>
          <td class="val" ng-show = "!is_lqx">{{pandian_list_detail.record.brand_name | brand_name}}</td>
        </tr>
      </table>
    </form>
    <form class="detail_form">
      <p class="title"> <!--商品明细-->{{language.TIPS_INVENTORY_DETAILED}} </p>
      <!--搜索加权限-->
      <div class="search" ng-show="!is_lqx" >
        <input class="search_input" ng-show="is_operate" type="text" ng-model="input_keywords"/>
        <button class="search_btn"  ng-show="is_operate" ng-click="search_goods(input_keywords);"> <!--搜索-->{{language.ACT_SEARCH}} </button>
      </div>
      <table class="goods_table">
        <tr>
          <th>sku</th>
          <th><!--名称-->{{language.TIPS_INVENTORY_NAME}}</th>
          <th><!--数量-->{{language.TIPS_INVENTORY_NUM}}</th>
          <th><!--单价-->{{language.TIPS_INVENTORY_UNIT_PRICE}}</th>
          <th><!--总价-->{{language.TIPS_INVENTORY_TOTAL_PRICE}}</th>
          <th ng-show="!is_lqx"><span ng-show="is_operate"><!--操作-->{{language.TIPS_INVENTORY_OPERATE}}</span></th>
        </tr>
        <tr ng-repeat="p in pandian_list_detail.record_detail track by $index">
          <td ng-class="{true:'red',flase:''}[p.color]">{{p.sku}}</td>
          <td ng-class="{true:'red',flase:''}[p.color]">{{p | language_filter_show:'GoodsName'}}</td>
          <td ng-class="{true:'red',flase:''}[p.color]">{{p.num}}</td>
          <td ng-class="{true:'red',flase:''}[p.color]">{{p.price|number:2}}</td>  
          <td ng-class="{true:'red',flase:''}[p.color]">{{p.money|number:2}}</td>
          <!--操作加权限-->
          <td ng-show="!is_lqx" ng-show="is_operate">
          	<button class="btn_edit" ng-click="edit(p);" ng-show="is_operate"><!--编辑-->{{language.TIPS_REDACT}}</button>
            <button class="btn_del" ng-click="del_sku(p.sku);" ng-show="is_operate"><!--删除-->{{language.TIPS_DELECT}}</button>
          </td>
        </tr>
      </table>
    </form>
    <p class="btn_wrap" ng-show="!is_lqx">
           <button class="btn" ng-show = "is_submit" ng-click="record_upload(pandian_list_detail.record,pandian_list_detail.record_detail);"><!--上传-->{{language.TIPS_UPLOAD}}</button>
    </p>
  </div>
</div>
